package com.tanhua.domain.mogo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * sequence表的实体类，用于记录某个集合的自增id值
 * @author liuyp
 * @date 2021/01/24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "sequence")
public class Sequence {

    private ObjectId id;

    /**自增序列*/
    private long seqId;

    /**集合名称*/
    private String collName;
}